![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
A pure CoffeeScript implementation of Msgpack.
npm install purepack
Tested and works with browserify, so
it's useful for packing and unpacking structures on the browser-side. It also works
server-side in node
processes. In either case, it finds the fastest buffer
objects at its disposal to give you the best performance possible.
Pack an object obj
. Return a Buffer
object.
Options currently supported, off by default:
floats
— Use floats rather than doubles when encoding. Useful when saving spacesort_keys
- Sort the keys of maps on outputs, so that purepack output can be compared in hashes.ext
- An 'extensible-type' function.no_str8
- Don't use 8-bit string encodings, to maintain compatibility with older msgpacks.Unpack a packed Buffer buf
. Throws errors if there were underruns, or bad encodings.
Currently support options are:
ext
- An extensible-type
function that given a [type,buf]
tuple, returns
an object. Can throw an error if needs be.no_ext
- If no ext
option is given, we plug in a default, stupid-ish
ext
function. Supply this flag if you don't want that.make setup
make
make setup
make
make test
Testing will run a series of scripts on your machine using node
. It also will
ask you to visit a URL with whichever browsers you please to test purepack
use via browserify
and with your browser's buffer objects.
FAQs
A browserify, Pure JS implementation of msgpack spec v5
The npm package purepack receives a total of 102,097 weekly downloads. As such, purepack popularity was classified as popular.
We found that purepack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.